-- GENERATED SPELL FOR [Scarlet Warder] --


function spell0_9447(pUnit, Event) --@Crusader Strike,n/a--
pUnit:FullCastSpellOnTarget(14518,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9447', 30313, 1)
end

function spell1_9447(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(15493,pUnit)
pUnit:RegisterEvent('Sorts_9447', 2500, 1)
end

function Sorts_9447(pUnit, Event)
local choix_sorts_9447 = math.random(0, 1)
if choix_sorts_9447 == 0 then
pUnit:RegisterEvent('spell0_9447', 1, 1)
end
if choix_sorts_9447 == 1 then
pUnit:RegisterEvent('spell1_9447', 1, 1)
end
end

function mob9447_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9447', math.random(1500, 3000), 1)
end

function mob9447_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9447_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9447_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9447, 1, 'mob9447_Action')
RegisterUnitEvent(9447, 2, 'mob9447_Leave')
RegisterUnitEvent(9447, 3, 'mob9447_Kill')
RegisterUnitEvent(9447, 4, 'mob9447_Die')
